#ifndef MY_TIMER_H
#define MY_TIMER_H

#include <QWidget>
#include <QTime>
#include <QTimer>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
namespace Ui { class my_timer; }
QT_END_NAMESPACE

class my_timer : public QWidget
{
    Q_OBJECT

public:
    my_timer(QWidget *parent = nullptr);
    ~my_timer();
    QTime time;
    QTimer timer;
private slots:
    void on_PD_start_clicked();
    void slot_timer_out(void);
    void on_PD_stop_clicked();

    void on_PD_reset_clicked();

    void on_PD_bit_clicked();

private:
    Ui::my_timer *ui;
    int mingci;
};
#endif // MY_TIMER_H
